﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace NJL.WebUsers.Controls
{
    public partial class Ad :BaseUserControl
    {  
        /// <summary>
        /// 
        /// </summary>
        public string AdId { get; set; }
        protected void Page_Load(object sender, EventArgs e)
        {
            NJL.BLL.NJL_AD bllAd = new BLL.NJL_AD();
            DataSet ds = bllAd.GetList("NJL_CS_AD_SPACE_ID='" + AdId + "' and PUBLISH_TO_WEBSITECODE='" + WEBSITE_CODE + "' and AD_START_DATE_TIME<getdate() and AD_END_DATE_TIME>getdate()");
            rptAd.DataSource = ds;
            rptAd.DataBind();
        }
    }
}